# 查看节点抓状态
ETCDCTL_API=3 {{ etcd_link_dir }}/bin/etcdctl \
--cacert={{ etcd_link_dir }}/ssl/ca.pem \
--cert={{ etcd_link_dir }}/ssl/server.pem \
--key={{ etcd_link_dir }}/ssl/server-key.pem \
--endpoints={% for host in groups['etcd'] %}https://{{ hostvars[host].inventory_hostname }}:2379{% if not loop.last %},{% endif %}{% endfor %} \
endpoint health --write-out=table
# 查看Leader节点
ETCDCTL_API=3 {{ etcd_link_dir }}/bin/etcdctl \
--cacert={{ etcd_link_dir }}/ssl/ca.pem \
--cert={{ etcd_link_dir }}/ssl/server.pem \
--key={{ etcd_link_dir }}/ssl/server-key.pem \
--endpoints={% for host in groups['etcd'] %}https://{{ hostvars[host].inventory_hostname }}:2379{% if not loop.last %},{% endif %}{% endfor %} \
endpoint status --write-out=table
# 查看性能
#ETCDCTL_API=3 {{ etcd_link_dir }}/bin/etcdctl \
#--cacert={{ etcd_link_dir }}/ssl/ca.pem \
#--cert={{ etcd_link_dir }}/ssl/server.pem \
#--key={{ etcd_link_dir }}/ssl/server-key.pem \
#--endpoints={% for host in groups['etcd'] %}https://{{ hostvars[host].inventory_hostname }}:2379{% if not loop.last %},{% endif %}{% endfor %} \
#check perf --write-out=table
